import { Http } from '@/utils/http'

/**
 * 根据id获取诗单详情
 * @param data 
 * @returns 
 */
export function requestSearchPoemsListDetailByPlId (data: any)  {
    return Http.request({
        url: '/out/poemsList/searchPoemsListDetailByPlId',
        method: 'POST',
        data: data
    })
}

/**
 * 收藏诗单
 * @param data 
 * @returns 
 */
export function requestCollectPoems (data: any)  {
    return Http.request({
        url: '/poemsList/collectPoems',
        method: 'POST',
        data: data
    })
}

/**
 * 收藏诗单
 * @param data 
 * @returns 
 */
export function queryCollectPoemsInfo (data: any)  {
    return Http.request({
        url: '/poemsList/queryCollectPoemsInfo',
        method: 'POST',
        data: data
    })
}

/**
 * 编辑诗单
 * @param data 
 * @returns 
 */
export function requestEditPoemsListInfo (formData: any, poemsListInfo: any)  {
    return Http.request({
        url: '/poemsList/editPoemsListInfo',
        method: 'POST',
        data: formData,
        params: poemsListInfo
    })
}